<div class="service">
    <div id="main">
        <h2><?php echo $this->translate($this->service->type) ?> »</h2>
        <h1><?php echo $this->translate($this->service->name) ?></h1>

        <?php if (isset($this->service->description)): ?>
        <div class="description">
            <?php foreach ($this->service->description as $key => $value): ?>
                <p><?php echo $value ?></p>
            <?php endforeach ?>
        </div>
        <?php endif ?>

        <?php if (isset($this->service->images)): ?>
        <ul class="photos no-list">
            <?php foreach ($this->service->images as $key => $value): ?>
            <li>
                <a href="/s/s/<?php echo $value ?>.jpg" rel="lightbox[<?php echo $this->service->name ?>]"><img src="/s/s/m/<?php echo $value ?>.jpg" alt="<?php echo $this->translate('Service') . ' ' . $this->service->name . ' ' . $this->translate('photo') . ' ' . ($key + 1)?>" /></a>
            </li>
            <?php endforeach ?>
        </ul>
        <?php endif ?>

    </div>
    <div id="aside">
        <?php if (isset($this->service->projects)): ?>
        <div class="box">
            <h2><?php echo $this->translate('Accomplished projects') ?></h2>
            <ul class="text-listing">
            <?php foreach ($this->service->projects as $key => $value): ?>
                <li><?php echo $this->link($value['route']) ?></li>
            <?php endforeach ?>
            </ul>
            <span class="fright"><?php echo $this->link('projects', $this->translate('See all') . ' »', 'inverted') ?></span>
        </div>
        <?php endif ?>
    </div>
</div>